def reser(num):
    _num=0
    while num!=0:
        _num=_num*10+num%10
        num//=10
    return _num
def isPalindrome(num):
    _num=reser(num)
    # print(_num)
    return _num==num
if __name__ == '__main__':
    x = int(input('请输入x:'))
    if isPalindrome(x)==True:
        print('是回文数')
    else:
        print('不是回文数')